<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>商品分类</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">选择门店</label>
                            <div class="col-sm-10">
                                <select name="store_id" class="form-control" required>
                                    {foreach name="storeList" item="item"}
                                    <option value="{$item.id}" {if condition="$item['id'] eq $info['store_id']"}selected{/if} >{$item.name}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed hide"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">选择分类</label>
                            <div class="col-sm-10">
                                <select name="goods_id" class="form-control" required>
                                    {foreach name="goodsList" item="item"}
                                    <option value="{$item.id}" {if condition="$item['id'] eq $info['goods_id']"}selected{/if} >{$item.goods_name}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed hide"></div>
                        <div class="form-group hide">
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-10">
                                <input type="text" name="sort" class="form-control" value="{$info.sort}" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed hide"></div>
                        <div class="form-group hide">
                            <label class="col-sm-2 control-label">上架</label>
                            <div class="col-sm-2">
                                <input type="checkbox" class="js-switch" name="is_on_sale" value="1" {if condition="$info['is_on_sale'] eq 1 or $info['is_on_sale'] eq null"}checked{/if} />
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">销量</label>
                            <div class="col-sm-10">
                                <input type="text" name="sales_sum" class="form-control" value="{$info.sales_sum}" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">销售方式</label>
                            <div class="col-sm-10">
                                <select name="sale_mode" class="form-control" required>
                                    <option value="0" {if condition="0 eq $info['sale_mode']"}selected{/if} >出售</option>
                                    <option value="1" {if condition="1 eq $info['sale_mode']"}selected{/if} >租借</option>
                                    <option value="2" {if condition="2 eq $info['sale_mode']"}selected{/if} >出售/租借</option>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                添加库存数量
                                <p style="color:red;">
                                    (目前库存：{$info.store_count})
                                </p>
                            </label>
                            <div class="col-sm-10">
                                <input type="text" name="store_count" class="form-control" value="0" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input type="hidden" value="1" name="is_async">
                                <input type="hidden" value="0" name="price">
                                <input type="hidden" value="0" name="vip_price">
                                <input type="hidden" value="0" name="give_integral">
                                <input type="hidden" value="0" name="hire_price">
                                <input type="hidden" value="0" name="deposit_amount">
                                <input type="hidden" value="0" name="is_recommend">
                                <input type="hidden" value="0" name="is_hot">
                                <input type="hidden" value="0" name="is_new">
                                <input type="hidden" value="{$store_id}" name="store_id">
                                <input type="hidden" value="{$info.addtime}" id="addtime" name="addtime">
                                <input type="hidden" value="{$info.creator_id}" id="creator_id" name="creator_id">
                                <input type="hidden" value="{$info.id}" id="id" name="id">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="button" onclick="history.back()">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/dist/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/dist/js/plugins/switchery/switchery.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/global.js?rnd=12345678"> </script>
<script>
    new Switchery(document.querySelector('.js-switch'));
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
</html>
